//
//  NSDictionary+Extend.m
//  CFFinanceProject
//
//  Created by chunfeng on 2018/4/9.
//  Copyright © 2018年 xiaowen. All rights reserved.
//

#import "NSDictionary+Extend.h"

@implementation NSDictionary (Extend)

+(NSDictionary *)getDictionryWithParametersArray:(NSArray *)parametersArray{
    NSMutableDictionary * dic = [NSMutableDictionary dictionary];
    if (!parametersArray) {
        NSLog(@"参数不存在");
    }else if (!parametersArray.count){
        NSLog(@"参数个数为空为空");
    }else{
        for (NSString * str in parametersArray) {
            if (![str isNullOrEmpty]) {
                dic[str] = str;
            }
        }
    }
    return [dic copy];
}

-(void)addKeyValue:(NSString *)keyValue{
    if (![keyValue isNullOrEmpty]) {
        [self setValue:NSStringFromClass([keyValue class]) forKey:keyValue];
    }else{
        NSLog(@"");
    }
    
}


@end
